package com.molichuxing.gateway.bff.order.entity.response;

import java.time.LocalDateTime;

import com.molichuxing.framework.dto.ResponseRootDto;
import com.molichuxing.services.property.OrderTypeEnum;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 车辆查询订单vo
 * 
 * @author zoumingyu
 * @date 2019年8月26日
 *
 */
@Data
public class CarOrderVo extends ResponseRootDto {
	private static final long serialVersionUID = 287798107069283552L;

	@ApiModelProperty(value = "订单号")
	private Long orderCode;

	@ApiModelProperty(value = "商品品类(2：专属里程，3：订阅里程)")
	private Integer orderType;

	@ApiModelProperty(value = "商品品类str")
	private String orderTypeStr;
	
	@ApiModelProperty(value = "付款方式(1：全款，2：分期)")
	private Integer paymentMethod;
	
	@ApiModelProperty(value = "付款方式str")
	private String paymentMethodStr;

	@ApiModelProperty(value = "用户id")
	private Integer userId;
	
	@ApiModelProperty(value = "用户账号")
	private String userName;

	@ApiModelProperty(value = "姓名")
	private String realName;

	@ApiModelProperty(value = "联系方式")
	private String userPhone;

	@ApiModelProperty(value = "身份证号")
	private String idNumber;


	@ApiModelProperty(value = "商品名称")
	private String goodsName;

	@ApiModelProperty(value = "提车门店id")
	private Integer deliveryStoreId;

	@ApiModelProperty(value = "提车门店")
	private String deliveryStoreName;

	@ApiModelProperty(value = "提车时间")
	private LocalDateTime deliveryTime;

	@ApiModelProperty(value = "下单时间")
	private LocalDateTime orderTime;

	@ApiModelProperty(value = "订单状态()")
	private Integer orderStatus;

	@ApiModelProperty(value = "订单状态str")
	private String orderStatusStr;

	public void setOrderType(OrderTypeEnum orderType) {
		this.orderType = orderType == null ? null : orderType.getValue();
		this.orderTypeStr = orderType == null ? null : orderType.getName();
	}
}
